package vis.app;

import javax.swing.ImageIcon;

public class Utils {
	public static ImageIcon createImageIcon(String path) {
		java.net.URL imgURL = Utils.class.getResource(path);
		if (null != imgURL) {
			// System.out.println(imgURL.getPath());
			return new ImageIcon(imgURL);
		} else {
			System.err.println("Couldn't find image: " + path);
			return null;
		}
	}
}
